* {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: black;
}

/* 
调整边距
*/

/* 上下左右都居中 */
.center-all {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 图标 */
/* 阿里巴巴图标库引入的svg代码图标样式 */
.alibaba-ico .icon {
  height: 50px;
  width: 50px;
}



/* 定义所有带上下页脚css */
.main .container {
  margin-top: 4rem;
  background-color: rgb(237, 237, 240);
  height: 100%;
}

.main .container .box {
  /* border-radius: 0.5rem;
  box-shadow: 10px 10px 10px rgb(115, 117, 117); */
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.6);
  /* 阴影效果 */
  /* border: 10px solid #000; */
  margin-left: 10%;
  margin-right: 10%;
  margin-top: 5%;
  margin-bottom: 2%;
  padding-bottom: 2%;
  background-color: rgb(230, 224, 216);
  height: 100%;
}



/* 定义markdown渲染出来的内容 */
.container .box .item .markdown-body {
  pre {
    margin-top: 2rem;
    background-color: #f4f4f4;
    /* 背景色 */
    border: 1px solid #ddd;
    /* 边框 */
    border-left: 3px solid #3498db;
    /* 边框左侧颜色 */
    color: #666;
    /* 字体颜色 */
    page-break-inside: avoid;
    /* 防止页面分割 */
    line-height: 1.6;
    /* 行高 */
    margin-bottom: 1.6em;
    /* 外边距底部 */
    max-width: 100%;
    /* 最大宽度 */
    overflow: auto;
    /* 超出隐藏，可滚动 */
    padding: 1em 1.5em;
    /* 内边距 */
    display: block;
    /* 块级元素 */
    word-break: break-all;
    /* 单词换行 */
  }

  pre code {
    background-color: transparent;
    /* 背景色透明 */
    color: #666;
    /* 字体颜色 */
  }

  code {
    font-family: Consolas, "Liberation Mono", Courier, monospace;
    /* 等宽字体 */
    color: #333;
    /* 字体颜色 */
    background-color: #f9f2f4;
    /* 背景色 */
    border-radius: 4px;
    /* 圆角 */
    padding: 2px 4px;
    /* 内边距 */
  }

  .line-numbers-rows {
    border-right-width: 0px !important;
  }

  .line-numbers {
    padding: 1.5rem 1.5rem 1.5rem 3.5rem !important;
    margin: 1rem 0 !important;
    background: #272822;
    overflow: auto;
    border-radius: 0.35rem;
    tab-size: 4;
  }

  pre[class*="language-"].line-numbers {
    position: relative;
    padding-left: 3.8em;
    counter-reset: linenumber;
  }

  .line-numbers .line-numbers-rows {
    position: absolute;
    pointer-events: none;
    top: 0;
    font-size: 100%;
    left: -3.8em;
    width: 3em;
    /* works for line-numbers below 1000 lines */
    letter-spacing: -1px;
    border-right: 1px solid #999;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  .line-numbers-rows>span {
    pointer-events: none;
    display: block;
    counter-increment: linenumber;
  }

  .line-numbers-rows>span:before {
    content: counter(linenumber);
    color: #999;
    display: block;
    padding-right: 0.8em;
    text-align: right;
  }



  h1 {
    text-align: center;
  }

  h2 {
    font-size: 1.5rem;
    line-height: 1.6;
    width: fit-content;
    font-weight: bold;
    margin: 20px 0;
    padding: 1px 12.5px;
    border-radius: 4px;
    background-color: #f6ae77;
    background: linear-gradient(to right, #f7ce68, #fbabfe);
    background-size: 200% 100%;
    background-position: 0% 0%;
    transition: all ease-in-out 0.1s;
  }

  h2:hover {
    background-position: -100% -100%;
    transition: all ease-in-out 0.1s;
  }

  h3 {
    margin: 20px 0;
    font-size: 1.3rem;
    text-align: left;
    padding-left: 10px;
    border-left: 5px solid #ffc000;
  }

  h3 span {
    border-bottom: 2px hidden #ffc000;
  }

  h3 span:hover {
    border-bottom: 2px solid #ffc000;
    transition: all linear 0.1s;
  }

  h4 {
    margin: 20px 0;
    font-size: 1.15rem;
    text-align: left;
  }

  h4::before {
    content: "";
    margin-right: 7px;
    display: inline-block;
    background-color: #ffc840;
    width: 10px;
    height: 10px;
    border-radius: 100%;
    border: #ffc840 1px solid;
    vertical-align: inherit;
  }

  h5 {
    margin: 23px 0;
    font-size: 1.1rem;
    text-align: left;
  }

  h5::before {
    content: "";
    margin-right: 7px;
    display: inline-block;
    background-color: #ffffff;
    width: 10px;
    height: 10px;
    border-radius: 100%;
    border: #ffc840 2px solid;
    vertical-align: inherit;
  }

  ::marker {
    /* font-weight: bold; */
    color: #626161;
  }

  li.md-list-item {
    margin: 0.4rem 0;
  }

  ol {
    margin-top: 0px;
    margin-left: 16px;
    margin-bottom: 8px;
    padding-left: 13px;
  }

  em {
    padding: 0 3px 0 0;
  }

  ul {
    list-style-type: disc;
  }

  ul ul {
    list-style-type: circle;
  }

  ul ul ul {
    list-style-type: square;
  }

  ol {
    list-style-type: decimal;
  }

  ol ol {
    list-style-type: lower-alpha;
  }

  ol ol ol {
    list-style-type: lower-roman;
  }

  li section {
    margin-top: 5px;
    margin-bottom: 5px;
    line-height: 1.7rem;
    text-align: justify;
    color: #000000;
    font-weight: 500;
  }

  li:before {
    content: "";
    height: calc(100% - 34px);
    top: 34px;
    position: absolute;
    border-left: 0.5px solid #d6d6d6;
    left: -14px;
  }

  .md-task-list-item:before {
    content: none;
  }

  .md-task-list-item>input {
    margin: 0px;
    padding: 0px;
    width: 0px;
    height: 0px;
    line-height: 1.2rem;
  }

  .md-task-list-item>input:before {
    display: inline-block;
    content: "";
    width: 1.1rem;
    height: 1.1rem;
    text-align: center;
    vertical-align: middle;
    background-color: #fff;
    border: 1px solid #ffb600;
    border-radius: 30%;
  }

  .md-task-list-item>input[checked]:before {
    content: "✔";
    color: #373737;
    -webkit-text-stroke: 1px #555;
    width: 1.1rem;
    height: 1.1rem;
    background-color: #ffffff;
    border: 2px solid #ffb600;
    border-radius: 30%;
    font-size: 0.75rem;
    line-height: 0.8rem;
  }

  input[type="checkbox"] {
    position: absolute;
    top: 7px;
    left: -3px;
  }

  .md-task-list-item p {
    margin: 0px 1.8rem;
  }

  blockquote {
    margin-left: 12px;
    padding: 12px;
    border: 1px solid #d7d9e2;
    border-left-color: #ffd43e;
    border-left-width: 4px;
    border-radius: 4px;
    line-height: 26px;
  }

  a:not(.md-toc-inner) {
    color: #000;
    border-bottom: 1px solid #ffb143;
    text-decoration: none;
    transform: all linear 0.1s;
  }

  a:hover:not(.md-toc-inner) {
    /* font-weight: bolder; */
    color: #e46918;
    border-bottom: 1px solid #e46918;
    transform: all linear 0.1s;
  }

  p a:not(.md-toc-inner)::before {
    content: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath  d='M477.934459 330.486594A50.844091 50.844091 0 0 1 406.752731 258.796425L512 152.532274a254.220457 254.220457 0 0 1 359.467726 359.467726L762.66137 618.772592a50.844091 50.844091 0 1 1-71.690168-71.690169l106.772591-106.772592a152.532274 152.532274 0 0 0-215.578947-215.578947z m70.164846 361.501489A50.844091 50.844091 0 1 1 619.789474 762.66137l-107.281033 107.281033A254.220457 254.220457 0 0 1 152.532274 512L259.813307 406.752731a50.844091 50.844091 0 1 1 72.19861 69.656405l-107.789474 107.281033a152.532274 152.532274 0 0 0 215.578947 215.578947z m-126.601788-16.77855a50.844091 50.844091 0 1 1-71.690168-71.690169l251.678252-251.678252a50.844091 50.844091 0 0 1 71.690169 71.690169z'/%3E%3C/svg%3E");
    color: #f68800;
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 0.2em;
    vertical-align: sub;
  }

  sup a::before {
    content: none;
  }

  strong {
    color: #000;
    font-weight: bold;
  }

  em {
    font-style: italic;
    color: #000;
  }

  mark {
    font-weight: bolder;
    color: #000;
    background: #fbe598;
  }

  em strong {
    color: #595959;
  }

  del {
    color: #595959;
  }

  hr {
    height: 1px;
    padding: 0;
    border: none;
    border-top: 2px solid #ffc000;
  }

  img {
    border-radius: 6px;
    display: block;
    margin: 20px auto;
    object-fit: contain;
  }

  figcaption {
    display: block;
    font-size: 13px;
    color: #595959;
  }

  p code {
    padding: 0px 3px 0px 7px;
    color: rgb(220, 53, 69);
    background: #ffe7e7;
    border-radius: 3px;
    font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;
    letter-spacing: 0.5px;
  }

  li code {
    color: #595959;
  }

  /* 代码块 */
  .md-fences::before {
    content: "";
    display: block;
    background: url();
    height: 30px;
    width: 100%;
    background-size: 40px;
    background-repeat: no-repeat;
    background-color: #f8f8f8;
    border-radius: 5px 5px 0 0;
    background-position: 6px 10px;
  }

  .cm-s-inner.CodeMirror {
    background: #f8f8f8;
    border-radius: 0 0 5px 5px;
    padding: 20px 10px 20px 20px;
    page-break-before: auto;
    line-height: 1.65rem;
  }

  table tr td {
    font-size: 14px;
    color: #000;
  }

  .footnotes {
    padding: 10px;
    font-size: 14px;
    border-radius: 6px;
    border: 0.8px solid #ffc000;
  }

  table.md-table {
    overflow: hidden;
  }

  table thead {
    border-top: 1px solid #dedddd;
    border-bottom: 1px solid #dedddd;
  }

  table tbody {
    border-bottom: 1px solid #dedddd;
  }

  .footnote-word {
    font-weight: normal;
    color: #595959;
  }

  .footnote-ref {
    font-weight: normal;
    color: #595959;
  }

  .footnote-item em {
    font-size: 14px;
    color: #595959;
    display: block;
    background: none;
  }

  /* 目录 */

  .md-toc * {
    font-family: "HarmonyOS_Sans_SC";
  }

  .md-tooltip-hide>span {
    display: none;
  }

  .md-toc:before {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
    content: "目录";
    font-size: 20px;
    font-weight: 700;
    color: #000;
  }

  .md-toc {
    padding: 20px 0;
    margin: 0 20px;
    background-color: #fffaf4;
    border: 2px solid #ffc000;
    border-radius: 5px;
  }

  .md-toc-item {
    line-height: 1.8em;
    display: block;
    color: #333;
  }

  a.md-toc-inner:hover {
    color: #f68800;
    font-weight: 700;
    text-decoration: none;
  }

  /* 导出HTML的样式 */
  body.typora-export {
    padding-left: 0px;
  }

  .typora-export-content .outline-content::before {
    content: "目录";
    font-size: 20px;
    font-weight: bold;
    position: absolute;
    top: 22px;
    left: 6px;
    border-radius: 5px;
    box-sizing: border-box;
    z-index: -1;
  }

  .typora-export-sidebar .outline-content {
    height: 100%;
    padding-left: 15px;
    border-right: 1px solid #d2d2d2;
  }

  .typora-export-content .typora-export-content {
    padding-left: 0px;
  }

  .typora-export-content .outline-expander {
    width: 0;
  }

  .typora-export-content .outline-item-active>.outline-item::after {
    content: "";
    position: relative;
    width: 11px;
    height: 8px;
    background: #ffc840;
    float: right;
    right: 5px;
    top: -14px;
    z-index: 100;
    border-radius: 40% 20% 20% 40%;
  }

  .typora-export-content .outline-label {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #sidebar-content {
    background: #fff;

  }

  #file-library-search-panel {
    background-color: #fff;
  }

  #file-library-search-input {
    border-radius: 3px;
  }


  #outline-content .outline-h1>.outline-item {
    font-size: larger;
    font-weight: bold;
    color: #fb9500;
  }


  #outline-content .outline-h1:not(:first-of-type)>.outline-item {

    margin-top: 10px;

  }

  #outline-content .outline-h2>.outline-item::before {
    content: "";
    width: 12px;
    height: 12px;
    background: #ffc840;
    vertical-align: middle;
    float: left;
    margin-top: -2px;
    margin-right: 11px;
    margin-left: -24px;
    border-radius: 100%;
    border: 3px solid #fff;
    z-index: 100;
    position: relative;
    top: 8px;
    left: 8px;
  }

  #outline-content .outline-h2::after {
    content: "";
    height: calc(100% - 24px);
    width: 1px;
    background: #ffc840;
    position: absolute;
    left: 3px;
    top: 21px;
  }

  #outline-content .outline-h2>.outline-item:last-child:after {
    display: none;
  }

  #outline-content .outline-h2>.outline-item>.outline-label {
    /* top: -1.2em; */
    line-height: 1.65rem;
    margin: 0;
  }

  #outline-content .outline-h2>.outline-item {
    /* margin-top: -22px; */
    margin-bottom: -3px;
  }

  #outline-content .outline-h3>.outline-item>.outline-label {
    border-left: 2px solid #ffc840;
    padding-left: 8px;
  }

  .outline-item-active:not(.outline-item-wrapper)::after {
    content: "";
    position: relative;
    width: 11px;
    height: 8px;
    background: #ffc840;
    float: right;
    top: -12px;
    z-index: 100;
    border-radius: 40% 20% 20% 40%;
  }


  /* 导出网页 */
  .outline-content .outline-h1>.outline-item {
    font-size: larger;
    font-weight: bold;
    color: #fb9500;
  }


  .outline-content .outline-h1:not(:first-of-type)>.outline-item {

    margin-top: 10px;

  }

  .outline-content .outline-h2>.outline-item::before {
    content: "";
    width: 12px;
    height: 12px;
    background: #ffc840;
    vertical-align: middle;
    float: left;
    margin-top: -2px;
    margin-right: 11px;
    margin-left: -24px;
    border-radius: 100%;
    border: 3px solid #fff;
    z-index: 100;
    position: relative;
    top: 8px;
    left: 8px;
  }

  .outline-content .outline-h2::after {
    content: "";
    height: calc(100% - 24px);
    width: 1px;
    background: #ffc840;
    position: absolute;
    left: 3px;
    top: 21px;
  }

  .outline-content .outline-h2>.outline-item:last-child:after {
    display: none;
  }

  .outline-content .outline-h2>.outline-item>.outline-label {
    /* top: -1.2em; */
    line-height: 1.65rem;
    margin: 0;
  }

  .outline-content .outline-h2>.outline-item {
    /* margin-top: -22px; */
    margin-bottom: -3px;
  }

  .outline-content .outline-h3>.outline-item>.outline-label {
    border-left: 2px solid #ffc840;
    padding-left: 8px;
  }



}